import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;


public class BusLine {
	private int id = -1;
	private int companyId = -1;
	private String name = null;
	private String detail = null;
	
	public BusLine(String name) {
		this.name = name;
	}
	
	public BusLine(ResultSet rs) throws SQLException {
		int id = rs.getInt(BusLineManager.LINE_ID_COLUMN);
		setId(id);
		String name = rs.getString(BusLineManager.NAME_COLUMN);
		setName(name);
		setCompanyId(rs.getInt(BusLineManager.COMPANY_COLUMN));
		setDetail(rs.getString(BusLineManager.DETAILS_COLUMN));
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	public int getId() {
		return id;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getName() {
		return name;
	}
	
	public void setDetail(String detail) {
		this.detail = detail;
	}
	
	public String getDetail() {
		return detail;
	}
	
	public int getCompanyId() {
		return companyId;
	}

	public void setCompanyId(int companyId) {
		this.companyId = companyId;
	}

	public void addStation(Station station) {
		//TODO: code here
	}
	
	public void removeStation(int stationId) {
		//TODO: code here
	}
	
	public ArrayList<Station> getAllStation() {
		//TODO: code here
		return null;
	}
}
